// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import App from './App';
import router from './router.js';
import VueLazyload from 'vue-lazyload';
import {Button, Select} from 'element-ui';

Vue.config.productionTip = false;

// Vue.prototype.$ELEMENT = { size: 'small' }
Vue.use(Button);
Vue.use(Select);

// error，loading是图片路径, 用require引入
Vue.use(VueLazyload, {
    error: require('./assets/error.svg'),
    loading: require('./assets/loading.svg'),
    attempt: 1
  }
);

/* eslint-disable no-new */

require('./assets/commons.scss');

new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
});
